feat: support relative path for data root and BagIt format#118
Merged
kikkomep merged 43 commits intocrs4:developfrom Nov 21, 2025
Merged
feat: support relative path for data root and BagIt format#118kikkomep merged 43 commits intocrs4:developfrom
kikkomep merged 43 commits intocrs4:developfrom
Conversation
…IP support and path unquoting Made availability detection more generic for ZIP archives and added path unquoting before checks.
…te with the correct subtype
…ve root path argument
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request introduces support for specifying a crate-relative path to be used as the root directory of the RO-Crate during validation (option
--relative-root-path <RELATIVE_PATH>). This feature allows the validator to operate on crates whose files are located in any local subdirectory, making it easier to handle nested layouts or custom directory structures.This new capability is also used to enable seamless support for BagIt RO-Crates: since BagIt stores the actual crate content inside the
data/directory, the validator leverages the crate-relative root mechanism to automatically map the BagIt structure to a proper RO-Crate root. As a result, both standard and BagIt-packaged RO-Crates can now be validated consistently.[ fix #100 ]